package foo;

import org.apache.commons.lang.builder.ToStringBuilder;

public class Pid {
	private String region;
	private String availabilityZone;

	public Pid() {
		region = "Default Region";
		availabilityZone = "Default AvailabilityZone";
	}

	public Pid(String region, String availabilityZone) {
		super();
		this.region = region;
		this.availabilityZone = availabilityZone;
	}

	public Pid withRegion(String aRegion) {
		region = aRegion;
		return this;
	}

	public Pid withAvailabilityZone(String anAvailabilityZone) {
		availabilityZone = anAvailabilityZone;
		return this;
	}

	public Pid build() {
		return new Pid(this.region, this.availabilityZone);
	}

	public String toString() {
		return new ToStringBuilder(this).append("region", region)
				.append("availabilityZone", availabilityZone).toString();
	}

}
